export interface DictOptionItem {
  id?: number
  parentId?: number
  dictName: string
  dictCode: string
  dictValue?: string
  description?: string
  type?: 'input' | 'select'
  value?: any
  children?: Array<DictOptionItem>
}

export interface DictOption {
  [key: string]: DictOptionItem
}

export interface DictOptionStore {
  dictOption: DictOption
}

export const handleDefaultSetting = (): DictOptionStore => {
  return {
    dictOption: {}
  }
}
